
{********************************************************************************}
{                                                                                }
{                                XML Data Binding                                }
{                                                                                }
{         Generated on: 2010-7-23 13:15:50                                       }
{       Generated from: F:\Projects\QueryItSuite\Qi.BizProvider2\bin\Query.xml   }
{                                                                                }
{********************************************************************************}

unit XmlQueryConfig;

interface

uses xmldom, XMLDoc, XMLIntf;

type

{ Forward Decls }

  IXMLQueryConfigType = interface;
  IXMLConnectionType = interface;
  IXMLTemplate_conditionsType = interface;
  IXMLTemplateType = interface;
  IXMLScriptType = interface;
  IXMLQueryClusterType = interface;
  IXMLQueryItemType = interface;
  IXMLReportConfigType = interface;
  IXMLReportType = interface;
  IXMLConditionsType = interface;
  IXMLItemType = interface;
  IXMLRow_colorsType = interface;
  IXMLColorType = interface;

{ IXMLQueryConfigType }

  IXMLQueryConfigType = interface(IXMLNode)
    ['{154364A0-B378-4F01-AA9F-8F7E5A398561}']
    { Property Accessors }
    function Get_Descript: WideString;
    function Get_Version: WideString;
    function Get_Connection: IXMLConnectionType;
    function Get_Template_conditions: IXMLTemplate_conditionsType;
    function Get_Script: IXMLScriptType;
    function Get_QueryCluster: IXMLQueryClusterType;
    procedure Set_Descript(Value: WideString);
    procedure Set_Version(Value: WideString);
    { Methods & Properties }
    property Descript: WideString read Get_Descript write Set_Descript;
    property Version: WideString read Get_Version write Set_Version;
    property Connection: IXMLConnectionType read Get_Connection;
    property Template_conditions: IXMLTemplate_conditionsType read Get_Template_conditions;
    property Script: IXMLScriptType read Get_Script;
    property QueryCluster: IXMLQueryClusterType read Get_QueryCluster;
  end;

{ IXMLConnectionType }

  IXMLConnectionType = interface(IXMLNode)
    ['{D73CF5B9-BE37-4062-8532-D2A48412BD61}']
    { Property Accessors }
    function Get_Encrypted: WideString;
    procedure Set_Encrypted(Value: WideString);
    { Methods & Properties }
    property Encrypted: WideString read Get_Encrypted write Set_Encrypted;
  end;

{ IXMLTemplate_conditionsType }

  IXMLTemplate_conditionsType = interface(IXMLNodeCollection)
    ['{2FEC4DEA-5254-4D23-BD86-1F79218E1A08}']
    { Property Accessors }
    function Get_Template(Index: Integer): IXMLTemplateType;
    { Methods & Properties }
    function Add: IXMLTemplateType;
    function Insert(const Index: Integer): IXMLTemplateType;
    property Template[Index: Integer]: IXMLTemplateType read Get_Template; default;
  end;

{ IXMLTemplateType }

  IXMLTemplateType = interface(IXMLNode)
    ['{6926092A-BAC5-4A98-847A-DD5F5EA99300}']
    { Property Accessors }
    function Get_Id: WideString;
    function Get_DefValue: WideString;
    function Get_Name: WideString;
    function Get_Datatype: WideString;
    function Get_Captions: WideString;
    function Get_Values: WideString;
    function Get_Notnull: WideString;
    function Get_Is_histroy: WideString;
    function Get_Script: WideString;
    function Get_GetCaptionsSql: WideString;
    function Get_GetValuesSql: WideString;
    procedure Set_Id(Value: WideString);
    procedure Set_DefValue(Value: WideString);
    procedure Set_Name(Value: WideString);
    procedure Set_Datatype(Value: WideString);
    procedure Set_Captions(Value: WideString);
    procedure Set_Values(Value: WideString);
    procedure Set_Notnull(Value: WideString);
    procedure Set_Is_histroy(Value: WideString);
    procedure Set_Script(Value: WideString);
    procedure Set_GetCaptionsSql(Value: WideString);
    procedure Set_GetValuesSql(Value: WideString);
    { Methods & Properties }
    property Id: WideString read Get_Id write Set_Id;
    property DefValue: WideString read Get_DefValue write Set_DefValue;
    property Name: WideString read Get_Name write Set_Name;
    property Datatype: WideString read Get_Datatype write Set_Datatype;
    property Captions: WideString read Get_Captions write Set_Captions;
    property Values: WideString read Get_Values write Set_Values;
    property Notnull: WideString read Get_Notnull write Set_Notnull;
    property Is_histroy: WideString read Get_Is_histroy write Set_Is_histroy;
    property Script: WideString read Get_Script write Set_Script;
    property GetCaptionsSql: WideString read Get_GetCaptionsSql write Set_GetCaptionsSql;
    property GetValuesSql: WideString read Get_GetValuesSql write Set_GetValuesSql;
  end;

{ IXMLScriptType }

  IXMLScriptType = interface(IXMLNode)
    ['{06969A6F-9E9A-43DB-BA61-635752E157E5}']
    { Property Accessors }
    function Get_Get: WideString;
    function Get_GetByPage: WideString;
    procedure Set_Get(Value: WideString);
    procedure Set_GetByPage(Value: WideString);
    { Methods & Properties }
    property Get: WideString read Get_Get write Set_Get;
    property GetByPage: WideString read Get_GetByPage write Set_GetByPage;
  end;

{ IXMLQueryClusterType }

  IXMLQueryClusterType = interface(IXMLNodeCollection)
    ['{7B468B76-8FA3-469D-A23C-242F2BAA4FD4}']
    { Property Accessors }
    function Get_QueryItem(Index: Integer): IXMLQueryItemType;
    { Methods & Properties }
    function Add: IXMLQueryItemType;
    function Insert(const Index: Integer): IXMLQueryItemType;
    property QueryItem[Index: Integer]: IXMLQueryItemType read Get_QueryItem; default;
  end;

{ IXMLQueryItemType }

  IXMLQueryItemType = interface(IXMLNode)
    ['{3EC9D5DF-4E8B-41D7-831A-2CC5EF158C58}']
    { Property Accessors }
    function Get_GetMethod: WideString;
    function Get_Public_: WideString;
    function Get_Hashid: WideString;
    function Get_Script: WideString;
    function Get_ScriptByPage: WideString;
    function Get_QueryName: WideString;
    function Get_Sequence: WideString;
    function Get_Tag: WideString;
    function Get_Need_authentic: WideString;
    function Get_Descript: WideString;
    function Get_ReportConfig: IXMLReportConfigType;
    function Get_SelectClause: WideString;
    function Get_FromClause: WideString;
    function Get_WhereClause: WideString;
    function Get_OrderClause: WideString;
    function Get_Conditions: IXMLConditionsType;
    function Get_Row_colors: IXMLRow_colorsType;
    procedure Set_GetMethod(Value: WideString);
    procedure Set_Public_(Value: WideString);
    procedure Set_Hashid(Value: WideString);
    procedure Set_Script(Value: WideString);
    procedure Set_ScriptByPage(Value: WideString);
    procedure Set_QueryName(Value: WideString);
    procedure Set_Sequence(Value: WideString);
    procedure Set_Tag(Value: WideString);
    procedure Set_Need_authentic(Value: WideString);
    procedure Set_Descript(Value: WideString);
    procedure Set_SelectClause(Value: WideString);
    procedure Set_FromClause(Value: WideString);
    procedure Set_WhereClause(Value: WideString);
    procedure Set_OrderClause(Value: WideString);
    { Methods & Properties }
    property GetMethod: WideString read Get_GetMethod write Set_GetMethod;
    property Public_: WideString read Get_Public_ write Set_Public_;
    property Hashid: WideString read Get_Hashid write Set_Hashid;
    property Script: WideString read Get_Script write Set_Script;
    property ScriptByPage: WideString read Get_ScriptByPage write Set_ScriptByPage;
    property QueryName: WideString read Get_QueryName write Set_QueryName;
    property Sequence: WideString read Get_Sequence write Set_Sequence;
    property Tag: WideString read Get_Tag write Set_Tag;
    property Need_authentic: WideString read Get_Need_authentic write Set_Need_authentic;
    property Descript: WideString read Get_Descript write Set_Descript;
    property ReportConfig: IXMLReportConfigType read Get_ReportConfig;
    property SelectClause: WideString read Get_SelectClause write Set_SelectClause;
    property FromClause: WideString read Get_FromClause write Set_FromClause;
    property WhereClause: WideString read Get_WhereClause write Set_WhereClause;
    property OrderClause: WideString read Get_OrderClause write Set_OrderClause;
    property Conditions: IXMLConditionsType read Get_Conditions;
    property Row_colors: IXMLRow_colorsType read Get_Row_colors;
  end;

{ IXMLReportConfigType }

  IXMLReportConfigType = interface(IXMLNodeCollection)
    ['{D785AFE8-F755-46F4-B54C-412727966208}']
    { Property Accessors }
    function Get_Preview: WideString;
    function Get_SelectPrinter: WideString;
    function Get_AutoDisplay: WideString;
    function Get_Report(Index: Integer): IXMLReportType;
    procedure Set_Preview(Value: WideString);
    procedure Set_SelectPrinter(Value: WideString);
    procedure Set_AutoDisplay(Value: WideString);
    { Methods & Properties }
    function Add: IXMLReportType;
    function Insert(const Index: Integer): IXMLReportType;
    property Preview: WideString read Get_Preview write Set_Preview;
    property SelectPrinter: WideString read Get_SelectPrinter write Set_SelectPrinter;
    property AutoDisplay: WideString read Get_AutoDisplay write Set_AutoDisplay;
    property Report[Index: Integer]: IXMLReportType read Get_Report; default;
  end;

{ IXMLReportType }

  IXMLReportType = interface(IXMLNode)
    ['{48616403-668A-4792-BE6F-B75B62C769E5}']
    { Property Accessors }
    function Get_Name: WideString;
    function Get_PerRecord: WideString;
    function Get_Duplex: WideString;
    function Get_File_: WideString;
    function Get_Copies: Integer;
    function Get_Filter: WideString;
    function Get_Printer: WideString;
    function Get_Hashid: WideString;
    function Get_Default: WideString;
    procedure Set_Name(Value: WideString);
    procedure Set_PerRecord(Value: WideString);
    procedure Set_Duplex(Value: WideString);
    procedure Set_File_(Value: WideString);
    procedure Set_Copies(Value: Integer);
    procedure Set_Filter(Value: WideString);
    procedure Set_Printer(Value: WideString);
    procedure Set_Hashid(Value: WideString);
    procedure Set_Default(Value: WideString);
    { Methods & Properties }
    property Name: WideString read Get_Name write Set_Name;
    property PerRecord: WideString read Get_PerRecord write Set_PerRecord;
    property Duplex: WideString read Get_Duplex write Set_Duplex;
    property File_: WideString read Get_File_ write Set_File_;
    property Copies: Integer read Get_Copies write Set_Copies;
    property Filter: WideString read Get_Filter write Set_Filter;
    property Printer: WideString read Get_Printer write Set_Printer;
    property Hashid: WideString read Get_Hashid write Set_Hashid;
    property Default: WideString read Get_Default write Set_Default;
  end;

{ IXMLConditionsType }

  IXMLConditionsType = interface(IXMLNodeCollection)
    ['{D4C5C35D-8B42-47D5-9670-B06BB68100C7}']
    { Property Accessors }
    function Get_AllowAllNull: WideString;
    function Get_Item(Index: Integer): IXMLItemType;
    procedure Set_AllowAllNull(Value: WideString);
    { Methods & Properties }
    function Add: IXMLItemType;
    function Insert(const Index: Integer): IXMLItemType;
    property AllowAllNull: WideString read Get_AllowAllNull write Set_AllowAllNull;
    property Item[Index: Integer]: IXMLItemType read Get_Item; default;
  end;

{ IXMLItemType }

  IXMLItemType = interface(IXMLNode)
    ['{848BED14-6943-4BB2-B902-E32342817C60}']
    { Property Accessors }
    function Get_Name: WideString;
    function Get_Datatype: WideString;
    function Get_Notnull: WideString;
    function Get_Script: WideString;
    function Get_Is_history: WideString;
    function Get_DefValue: WideString;
    function Get_Template_id: WideString;
    function Get_Captions: WideString;
    function Get_Values: WideString;
    function Get_GetCaptionsSql: WideString;
    function Get_GetValuesSql: WideString;
    function Get_Neme: WideString;
    procedure Set_Name(Value: WideString);
    procedure Set_Datatype(Value: WideString);
    procedure Set_Notnull(Value: WideString);
    procedure Set_Script(Value: WideString);
    procedure Set_Is_history(Value: WideString);
    procedure Set_DefValue(Value: WideString);
    procedure Set_Template_id(Value: WideString);
    procedure Set_Captions(Value: WideString);
    procedure Set_Values(Value: WideString);
    procedure Set_GetCaptionsSql(Value: WideString);
    procedure Set_GetValuesSql(Value: WideString);
    procedure Set_Neme(Value: WideString);
    { Methods & Properties }
    property Name: WideString read Get_Name write Set_Name;
    property Datatype: WideString read Get_Datatype write Set_Datatype;
    property Notnull: WideString read Get_Notnull write Set_Notnull;
    property Script: WideString read Get_Script write Set_Script;
    property Is_history: WideString read Get_Is_history write Set_Is_history;
    property DefValue: WideString read Get_DefValue write Set_DefValue;
    property Template_id: WideString read Get_Template_id write Set_Template_id;
    property Captions: WideString read Get_Captions write Set_Captions;
    property Values: WideString read Get_Values write Set_Values;
    property GetCaptionsSql: WideString read Get_GetCaptionsSql write Set_GetCaptionsSql;
    property GetValuesSql: WideString read Get_GetValuesSql write Set_GetValuesSql;
    property Neme: WideString read Get_Neme write Set_Neme;
  end;

{ IXMLRow_colorsType }

  IXMLRow_colorsType = interface(IXMLNodeCollection)
    ['{A5C77F97-9D82-40AB-AA72-04DB51971915}']
    { Property Accessors }
    function Get_Color(Index: Integer): IXMLColorType;
    { Methods & Properties }
    function Add: IXMLColorType;
    function Insert(const Index: Integer): IXMLColorType;
    property Color[Index: Integer]: IXMLColorType read Get_Color; default;
  end;

{ IXMLColorType }

  IXMLColorType = interface(IXMLNode)
    ['{1341FF01-6FA1-48D6-9FD6-75F73C84FB9C}']
    { Property Accessors }
    function Get_Rgb: WideString;
    function Get_Field_value: WideString;
    procedure Set_Rgb(Value: WideString);
    procedure Set_Field_value(Value: WideString);
    { Methods & Properties }
    property Rgb: WideString read Get_Rgb write Set_Rgb;
    property Field_value: WideString read Get_Field_value write Set_Field_value;
  end;

{ Forward Decls }

  TXMLQueryConfigType = class;
  TXMLConnectionType = class;
  TXMLTemplate_conditionsType = class;
  TXMLTemplateType = class;
  TXMLScriptType = class;
  TXMLQueryClusterType = class;
  TXMLQueryItemType = class;
  TXMLReportConfigType = class;
  TXMLReportType = class;
  TXMLConditionsType = class;
  TXMLItemType = class;
  TXMLRow_colorsType = class;
  TXMLColorType = class;

{ TXMLQueryConfigType }

  TXMLQueryConfigType = class(TXMLNode, IXMLQueryConfigType)
  protected
    { IXMLQueryConfigType }
    function Get_Descript: WideString;
    function Get_Version: WideString;
    function Get_Connection: IXMLConnectionType;
    function Get_Template_conditions: IXMLTemplate_conditionsType;
    function Get_Script: IXMLScriptType;
    function Get_QueryCluster: IXMLQueryClusterType;
    procedure Set_Descript(Value: WideString);
    procedure Set_Version(Value: WideString);
  public
    procedure AfterConstruction; override;
  end;

{ TXMLConnectionType }

  TXMLConnectionType = class(TXMLNode, IXMLConnectionType)
  protected
    { IXMLConnectionType }
    function Get_Encrypted: WideString;
    procedure Set_Encrypted(Value: WideString);
  end;

{ TXMLTemplate_conditionsType }

  TXMLTemplate_conditionsType = class(TXMLNodeCollection, IXMLTemplate_conditionsType)
  protected
    { IXMLTemplate_conditionsType }
    function Get_Template(Index: Integer): IXMLTemplateType;
    function Add: IXMLTemplateType;
    function Insert(const Index: Integer): IXMLTemplateType;
  public
    procedure AfterConstruction; override;
  end;

{ TXMLTemplateType }

  TXMLTemplateType = class(TXMLNode, IXMLTemplateType)
  protected
    { IXMLTemplateType }
    function Get_Id: WideString;
    function Get_DefValue: WideString;
    function Get_Name: WideString;
    function Get_Datatype: WideString;
    function Get_Captions: WideString;
    function Get_Values: WideString;
    function Get_Notnull: WideString;
    function Get_Is_histroy: WideString;
    function Get_Script: WideString;
    function Get_GetCaptionsSql: WideString;
    function Get_GetValuesSql: WideString;
    procedure Set_Id(Value: WideString);
    procedure Set_DefValue(Value: WideString);
    procedure Set_Name(Value: WideString);
    procedure Set_Datatype(Value: WideString);
    procedure Set_Captions(Value: WideString);
    procedure Set_Values(Value: WideString);
    procedure Set_Notnull(Value: WideString);
    procedure Set_Is_histroy(Value: WideString);
    procedure Set_Script(Value: WideString);
    procedure Set_GetCaptionsSql(Value: WideString);
    procedure Set_GetValuesSql(Value: WideString);
  end;

{ TXMLScriptType }

  TXMLScriptType = class(TXMLNode, IXMLScriptType)
  protected
    { IXMLScriptType }
    function Get_Get: WideString;
    function Get_GetByPage: WideString;
    procedure Set_Get(Value: WideString);
    procedure Set_GetByPage(Value: WideString);
  end;

{ TXMLQueryClusterType }

  TXMLQueryClusterType = class(TXMLNodeCollection, IXMLQueryClusterType)
  protected
    { IXMLQueryClusterType }
    function Get_QueryItem(Index: Integer): IXMLQueryItemType;
    function Add: IXMLQueryItemType;
    function Insert(const Index: Integer): IXMLQueryItemType;
  public
    procedure AfterConstruction; override;
  end;

{ TXMLQueryItemType }

  TXMLQueryItemType = class(TXMLNode, IXMLQueryItemType)
  protected
    { IXMLQueryItemType }
    function Get_GetMethod: WideString;
    function Get_Public_: WideString;
    function Get_Hashid: WideString;
    function Get_Script: WideString;
    function Get_ScriptByPage: WideString;
    function Get_QueryName: WideString;
    function Get_Sequence: WideString;
    function Get_Tag: WideString;
    function Get_Need_authentic: WideString;
    function Get_Descript: WideString;
    function Get_ReportConfig: IXMLReportConfigType;
    function Get_SelectClause: WideString;
    function Get_FromClause: WideString;
    function Get_WhereClause: WideString;
    function Get_OrderClause: WideString;
    function Get_Conditions: IXMLConditionsType;
    function Get_Row_colors: IXMLRow_colorsType;
    procedure Set_GetMethod(Value: WideString);
    procedure Set_Public_(Value: WideString);
    procedure Set_Hashid(Value: WideString);
    procedure Set_Script(Value: WideString);
    procedure Set_ScriptByPage(Value: WideString);
    procedure Set_QueryName(Value: WideString);
    procedure Set_Sequence(Value: WideString);
    procedure Set_Tag(Value: WideString);
    procedure Set_Need_authentic(Value: WideString);
    procedure Set_Descript(Value: WideString);
    procedure Set_SelectClause(Value: WideString);
    procedure Set_FromClause(Value: WideString);
    procedure Set_WhereClause(Value: WideString);
    procedure Set_OrderClause(Value: WideString);
  public
    procedure AfterConstruction; override;
  end;

{ TXMLReportConfigType }

  TXMLReportConfigType = class(TXMLNodeCollection, IXMLReportConfigType)
  protected
    { IXMLReportConfigType }
    function Get_Preview: WideString;
    function Get_SelectPrinter: WideString;
    function Get_AutoDisplay: WideString;
    function Get_Report(Index: Integer): IXMLReportType;
    procedure Set_Preview(Value: WideString);
    procedure Set_SelectPrinter(Value: WideString);
    procedure Set_AutoDisplay(Value: WideString);
    function Add: IXMLReportType;
    function Insert(const Index: Integer): IXMLReportType;
  public
    procedure AfterConstruction; override;
  end;

{ TXMLReportType }

  TXMLReportType = class(TXMLNode, IXMLReportType)
  protected
    { IXMLReportType }
    function Get_Name: WideString;
    function Get_PerRecord: WideString;
    function Get_Duplex: WideString;
    function Get_File_: WideString;
    function Get_Copies: Integer;
    function Get_Filter: WideString;
    function Get_Printer: WideString;
    function Get_Hashid: WideString;
    function Get_Default: WideString;
    procedure Set_Name(Value: WideString);
    procedure Set_PerRecord(Value: WideString);
    procedure Set_Duplex(Value: WideString);
    procedure Set_File_(Value: WideString);
    procedure Set_Copies(Value: Integer);
    procedure Set_Filter(Value: WideString);
    procedure Set_Printer(Value: WideString);
    procedure Set_Hashid(Value: WideString);
    procedure Set_Default(Value: WideString);
  end;

{ TXMLConditionsType }

  TXMLConditionsType = class(TXMLNodeCollection, IXMLConditionsType)
  protected
    { IXMLConditionsType }
    function Get_AllowAllNull: WideString;
    function Get_Item(Index: Integer): IXMLItemType;
    procedure Set_AllowAllNull(Value: WideString);
    function Add: IXMLItemType;
    function Insert(const Index: Integer): IXMLItemType;
  public
    procedure AfterConstruction; override;
  end;

{ TXMLItemType }

  TXMLItemType = class(TXMLNode, IXMLItemType)
  protected
    { IXMLItemType }
    function Get_Name: WideString;
    function Get_Datatype: WideString;
    function Get_Notnull: WideString;
    function Get_Script: WideString;
    function Get_Is_history: WideString;
    function Get_DefValue: WideString;
    function Get_Template_id: WideString;
    function Get_Captions: WideString;
    function Get_Values: WideString;
    function Get_GetCaptionsSql: WideString;
    function Get_GetValuesSql: WideString;
    function Get_Neme: WideString;
    procedure Set_Name(Value: WideString);
    procedure Set_Datatype(Value: WideString);
    procedure Set_Notnull(Value: WideString);
    procedure Set_Script(Value: WideString);
    procedure Set_Is_history(Value: WideString);
    procedure Set_DefValue(Value: WideString);
    procedure Set_Template_id(Value: WideString);
    procedure Set_Captions(Value: WideString);
    procedure Set_Values(Value: WideString);
    procedure Set_GetCaptionsSql(Value: WideString);
    procedure Set_GetValuesSql(Value: WideString);
    procedure Set_Neme(Value: WideString);
  end;

{ TXMLRow_colorsType }

  TXMLRow_colorsType = class(TXMLNodeCollection, IXMLRow_colorsType)
  protected
    { IXMLRow_colorsType }
    function Get_Color(Index: Integer): IXMLColorType;
    function Add: IXMLColorType;
    function Insert(const Index: Integer): IXMLColorType;
  public
    procedure AfterConstruction; override;
  end;

{ TXMLColorType }

  TXMLColorType = class(TXMLNode, IXMLColorType)
  protected
    { IXMLColorType }
    function Get_Rgb: WideString;
    function Get_Field_value: WideString;
    procedure Set_Rgb(Value: WideString);
    procedure Set_Field_value(Value: WideString);
  end;

{ Global Functions }

function GetqueryConfig(Doc: IXMLDocument): IXMLQueryConfigType;
function LoadqueryConfig(const FileName: WideString): IXMLQueryConfigType;
function NewqueryConfig: IXMLQueryConfigType;

const
  TargetNamespace = '';

implementation

{ Global Functions }

function GetqueryConfig(Doc: IXMLDocument): IXMLQueryConfigType;
begin
  Result := Doc.GetDocBinding('queryConfig', TXMLQueryConfigType, TargetNamespace) as IXMLQueryConfigType;
end;

function LoadqueryConfig(const FileName: WideString): IXMLQueryConfigType;
begin
  Result := LoadXMLDocument(FileName).GetDocBinding('queryConfig', TXMLQueryConfigType, TargetNamespace) as IXMLQueryConfigType;
end;

function NewqueryConfig: IXMLQueryConfigType;
begin
  Result := NewXMLDocument.GetDocBinding('queryConfig', TXMLQueryConfigType, TargetNamespace) as IXMLQueryConfigType;
end;

{ TXMLQueryConfigType }

procedure TXMLQueryConfigType.AfterConstruction;
begin
  RegisterChildNode('connection', TXMLConnectionType);
  RegisterChildNode('template_conditions', TXMLTemplate_conditionsType);
  RegisterChildNode('script', TXMLScriptType);
  RegisterChildNode('queryCluster', TXMLQueryClusterType);
  inherited;
end;

function TXMLQueryConfigType.Get_Descript: WideString;
begin
  Result := AttributeNodes['descript'].Text;
end;

procedure TXMLQueryConfigType.Set_Descript(Value: WideString);
begin
  SetAttribute('descript', Value);
end;

function TXMLQueryConfigType.Get_Version: WideString;
begin
  Result := AttributeNodes['version'].Text;
end;

procedure TXMLQueryConfigType.Set_Version(Value: WideString);
begin
  SetAttribute('version', Value);
end;

function TXMLQueryConfigType.Get_Connection: IXMLConnectionType;
begin
  Result := ChildNodes['connection'] as IXMLConnectionType;
end;

function TXMLQueryConfigType.Get_Template_conditions: IXMLTemplate_conditionsType;
begin
  Result := ChildNodes['template_conditions'] as IXMLTemplate_conditionsType;
end;

function TXMLQueryConfigType.Get_Script: IXMLScriptType;
begin
  Result := ChildNodes['script'] as IXMLScriptType;
end;

function TXMLQueryConfigType.Get_QueryCluster: IXMLQueryClusterType;
begin
  Result := ChildNodes['queryCluster'] as IXMLQueryClusterType;
end;

{ TXMLConnectionType }

function TXMLConnectionType.Get_Encrypted: WideString;
begin
  Result := AttributeNodes['encrypted'].Text;
end;

procedure TXMLConnectionType.Set_Encrypted(Value: WideString);
begin
  SetAttribute('encrypted', Value);
end;

{ TXMLTemplate_conditionsType }

procedure TXMLTemplate_conditionsType.AfterConstruction;
begin
  RegisterChildNode('template', TXMLTemplateType);
  ItemTag := 'template';
  ItemInterface := IXMLTemplateType;
  inherited;
end;

function TXMLTemplate_conditionsType.Get_Template(Index: Integer): IXMLTemplateType;
begin
  Result := List[Index] as IXMLTemplateType;
end;

function TXMLTemplate_conditionsType.Add: IXMLTemplateType;
begin
  Result := AddItem(-1) as IXMLTemplateType;
end;

function TXMLTemplate_conditionsType.Insert(const Index: Integer): IXMLTemplateType;
begin
  Result := AddItem(Index) as IXMLTemplateType;
end;

{ TXMLTemplateType }

function TXMLTemplateType.Get_Id: WideString;
begin
  Result := AttributeNodes['id'].Text;
end;

procedure TXMLTemplateType.Set_Id(Value: WideString);
begin
  SetAttribute('id', Value);
end;

function TXMLTemplateType.Get_DefValue: WideString;
begin
  Result := AttributeNodes['defValue'].Text;
end;

procedure TXMLTemplateType.Set_DefValue(Value: WideString);
begin
  SetAttribute('defValue', Value);
end;

function TXMLTemplateType.Get_Name: WideString;
begin
  Result := AttributeNodes['name'].Text;
end;

procedure TXMLTemplateType.Set_Name(Value: WideString);
begin
  SetAttribute('name', Value);
end;

function TXMLTemplateType.Get_Datatype: WideString;
begin
  Result := AttributeNodes['datatype'].Text;
end;

procedure TXMLTemplateType.Set_Datatype(Value: WideString);
begin
  SetAttribute('datatype', Value);
end;

function TXMLTemplateType.Get_Captions: WideString;
begin
  Result := AttributeNodes['captions'].Text;
end;

procedure TXMLTemplateType.Set_Captions(Value: WideString);
begin
  SetAttribute('captions', Value);
end;

function TXMLTemplateType.Get_Values: WideString;
begin
  Result := AttributeNodes['values'].Text;
end;

procedure TXMLTemplateType.Set_Values(Value: WideString);
begin
  SetAttribute('values', Value);
end;

function TXMLTemplateType.Get_Notnull: WideString;
begin
  Result := AttributeNodes['notnull'].Text;
end;

procedure TXMLTemplateType.Set_Notnull(Value: WideString);
begin
  SetAttribute('notnull', Value);
end;

function TXMLTemplateType.Get_Is_histroy: WideString;
begin
  Result := AttributeNodes['is_histroy'].Text;
end;

procedure TXMLTemplateType.Set_Is_histroy(Value: WideString);
begin
  SetAttribute('is_histroy', Value);
end;

function TXMLTemplateType.Get_Script: WideString;
begin
  Result := AttributeNodes['script'].Text;
end;

procedure TXMLTemplateType.Set_Script(Value: WideString);
begin
  SetAttribute('script', Value);
end;

function TXMLTemplateType.Get_GetCaptionsSql: WideString;
begin
  Result := AttributeNodes['getCaptionsSql'].Text;
end;

procedure TXMLTemplateType.Set_GetCaptionsSql(Value: WideString);
begin
  SetAttribute('getCaptionsSql', Value);
end;

function TXMLTemplateType.Get_GetValuesSql: WideString;
begin
  Result := AttributeNodes['getValuesSql'].Text;
end;

procedure TXMLTemplateType.Set_GetValuesSql(Value: WideString);
begin
  SetAttribute('getValuesSql', Value);
end;

{ TXMLScriptType }

function TXMLScriptType.Get_Get: WideString;
begin
  Result := ChildNodes['get'].Text;
end;

procedure TXMLScriptType.Set_Get(Value: WideString);
begin
  ChildNodes['get'].NodeValue := Value;
end;

function TXMLScriptType.Get_GetByPage: WideString;
begin
  Result := ChildNodes['getByPage'].Text;
end;

procedure TXMLScriptType.Set_GetByPage(Value: WideString);
begin
  ChildNodes['getByPage'].NodeValue := Value;
end;

{ TXMLQueryClusterType }

procedure TXMLQueryClusterType.AfterConstruction;
begin
  RegisterChildNode('queryItem', TXMLQueryItemType);
  ItemTag := 'queryItem';
  ItemInterface := IXMLQueryItemType;
  inherited;
end;

function TXMLQueryClusterType.Get_QueryItem(Index: Integer): IXMLQueryItemType;
begin
  Result := List[Index] as IXMLQueryItemType;
end;

function TXMLQueryClusterType.Add: IXMLQueryItemType;
begin
  Result := AddItem(-1) as IXMLQueryItemType;
end;

function TXMLQueryClusterType.Insert(const Index: Integer): IXMLQueryItemType;
begin
  Result := AddItem(Index) as IXMLQueryItemType;
end;

{ TXMLQueryItemType }

procedure TXMLQueryItemType.AfterConstruction;
begin
  RegisterChildNode('reportConfig', TXMLReportConfigType);
  RegisterChildNode('conditions', TXMLConditionsType);
  RegisterChildNode('row_colors', TXMLRow_colorsType);
  inherited;
end;

function TXMLQueryItemType.Get_GetMethod: WideString;
begin
  Result := AttributeNodes['getMethod'].Text;
end;

procedure TXMLQueryItemType.Set_GetMethod(Value: WideString);
begin
  SetAttribute('getMethod', Value);
end;

function TXMLQueryItemType.Get_Public_: WideString;
begin
  Result := AttributeNodes['public'].Text;
end;

procedure TXMLQueryItemType.Set_Public_(Value: WideString);
begin
  SetAttribute('public', Value);
end;

function TXMLQueryItemType.Get_Hashid: WideString;
begin
  Result := AttributeNodes['hashid'].Text;
end;

procedure TXMLQueryItemType.Set_Hashid(Value: WideString);
begin
  SetAttribute('hashid', Value);
end;

function TXMLQueryItemType.Get_Script: WideString;
begin
  Result := ChildNodes['script'].Text;
end;

procedure TXMLQueryItemType.Set_Script(Value: WideString);
begin
  ChildNodes['script'].NodeValue := Value;
end;

function TXMLQueryItemType.Get_ScriptByPage: WideString;
begin
  Result := ChildNodes['scriptByPage'].Text;
end;

procedure TXMLQueryItemType.Set_ScriptByPage(Value: WideString);
begin
  ChildNodes['scriptByPage'].NodeValue := Value;
end;

function TXMLQueryItemType.Get_QueryName: WideString;
begin
  Result := ChildNodes['queryName'].Text;
end;

procedure TXMLQueryItemType.Set_QueryName(Value: WideString);
begin
  ChildNodes['queryName'].NodeValue := Value;
end;

function TXMLQueryItemType.Get_Sequence: WideString;
begin
  Result := ChildNodes['sequence'].Text;
end;

procedure TXMLQueryItemType.Set_Sequence(Value: WideString);
begin
  ChildNodes['sequence'].NodeValue := Value;
end;

function TXMLQueryItemType.Get_Tag: WideString;
begin
  Result := ChildNodes['tag'].Text;
end;

procedure TXMLQueryItemType.Set_Tag(Value: WideString);
begin
  ChildNodes['tag'].NodeValue := Value;
end;

function TXMLQueryItemType.Get_Need_authentic: WideString;
begin
  Result := ChildNodes['need_authentic'].Text;
end;

procedure TXMLQueryItemType.Set_Need_authentic(Value: WideString);
begin
  ChildNodes['need_authentic'].NodeValue := Value;
end;

function TXMLQueryItemType.Get_Descript: WideString;
begin
  Result := ChildNodes['descript'].Text;
end;

procedure TXMLQueryItemType.Set_Descript(Value: WideString);
begin
  ChildNodes['descript'].NodeValue := Value;
end;

function TXMLQueryItemType.Get_ReportConfig: IXMLReportConfigType;
begin
  Result := ChildNodes['reportConfig'] as IXMLReportConfigType;
end;

function TXMLQueryItemType.Get_SelectClause: WideString;
begin
  Result := ChildNodes['selectClause'].Text;
end;

procedure TXMLQueryItemType.Set_SelectClause(Value: WideString);
begin
  ChildNodes['selectClause'].NodeValue := Value;
end;

function TXMLQueryItemType.Get_FromClause: WideString;
begin
  Result := ChildNodes['fromClause'].Text;
end;

procedure TXMLQueryItemType.Set_FromClause(Value: WideString);
begin
  ChildNodes['fromClause'].NodeValue := Value;
end;

function TXMLQueryItemType.Get_WhereClause: WideString;
begin
  Result := ChildNodes['whereClause'].Text;
end;

procedure TXMLQueryItemType.Set_WhereClause(Value: WideString);
begin
  ChildNodes['whereClause'].NodeValue := Value;
end;

function TXMLQueryItemType.Get_OrderClause: WideString;
begin
  Result := ChildNodes['orderClause'].Text;
end;

procedure TXMLQueryItemType.Set_OrderClause(Value: WideString);
begin
  ChildNodes['orderClause'].NodeValue := Value;
end;

function TXMLQueryItemType.Get_Conditions: IXMLConditionsType;
begin
  Result := ChildNodes['conditions'] as IXMLConditionsType;
end;

function TXMLQueryItemType.Get_Row_colors: IXMLRow_colorsType;
begin
  Result := ChildNodes['row_colors'] as IXMLRow_colorsType;
end;

{ TXMLReportConfigType }

procedure TXMLReportConfigType.AfterConstruction;
begin
  RegisterChildNode('report', TXMLReportType);
  ItemTag := 'report';
  ItemInterface := IXMLReportType;
  inherited;
end;

function TXMLReportConfigType.Get_Preview: WideString;
begin
  Result := AttributeNodes['preview'].Text;
end;

procedure TXMLReportConfigType.Set_Preview(Value: WideString);
begin
  SetAttribute('preview', Value);
end;

function TXMLReportConfigType.Get_SelectPrinter: WideString;
begin
  Result := AttributeNodes['selectPrinter'].Text;
end;

procedure TXMLReportConfigType.Set_SelectPrinter(Value: WideString);
begin
  SetAttribute('selectPrinter', Value);
end;

function TXMLReportConfigType.Get_AutoDisplay: WideString;
begin
  Result := AttributeNodes['autoDisplay'].Text;
end;

procedure TXMLReportConfigType.Set_AutoDisplay(Value: WideString);
begin
  SetAttribute('autoDisplay', Value);
end;

function TXMLReportConfigType.Get_Report(Index: Integer): IXMLReportType;
begin
  Result := List[Index] as IXMLReportType;
end;

function TXMLReportConfigType.Add: IXMLReportType;
begin
  Result := AddItem(-1) as IXMLReportType;
end;

function TXMLReportConfigType.Insert(const Index: Integer): IXMLReportType;
begin
  Result := AddItem(Index) as IXMLReportType;
end;

{ TXMLReportType }

function TXMLReportType.Get_Name: WideString;
begin
  Result := AttributeNodes['name'].Text;
end;

procedure TXMLReportType.Set_Name(Value: WideString);
begin
  SetAttribute('name', Value);
end;

function TXMLReportType.Get_PerRecord: WideString;
begin
  Result := AttributeNodes['perRecord'].Text;
end;

procedure TXMLReportType.Set_PerRecord(Value: WideString);
begin
  SetAttribute('perRecord', Value);
end;

function TXMLReportType.Get_Duplex: WideString;
begin
  Result := AttributeNodes['duplex'].Text;
end;

procedure TXMLReportType.Set_Duplex(Value: WideString);
begin
  SetAttribute('duplex', Value);
end;

function TXMLReportType.Get_File_: WideString;
begin
  Result := AttributeNodes['file'].Text;
end;

procedure TXMLReportType.Set_File_(Value: WideString);
begin
  SetAttribute('file', Value);
end;

function TXMLReportType.Get_Copies: Integer;
begin
  Result := AttributeNodes['copies'].NodeValue;
end;

procedure TXMLReportType.Set_Copies(Value: Integer);
begin
  SetAttribute('copies', Value);
end;

function TXMLReportType.Get_Filter: WideString;
begin
  Result := AttributeNodes['filter'].Text;
end;

procedure TXMLReportType.Set_Filter(Value: WideString);
begin
  SetAttribute('filter', Value);
end;

function TXMLReportType.Get_Printer: WideString;
begin
  Result := AttributeNodes['printer'].Text;
end;

procedure TXMLReportType.Set_Printer(Value: WideString);
begin
  SetAttribute('printer', Value);
end;

function TXMLReportType.Get_Hashid: WideString;
begin
  Result := AttributeNodes['hashid'].Text;
end;

procedure TXMLReportType.Set_Hashid(Value: WideString);
begin
  SetAttribute('hashid', Value);
end;

function TXMLReportType.Get_Default: WideString;
begin
  Result := AttributeNodes['default'].Text;
end;

procedure TXMLReportType.Set_Default(Value: WideString);
begin
  SetAttribute('default', Value);
end;

{ TXMLConditionsType }

procedure TXMLConditionsType.AfterConstruction;
begin
  RegisterChildNode('item', TXMLItemType);
  ItemTag := 'item';
  ItemInterface := IXMLItemType;
  inherited;
end;

function TXMLConditionsType.Get_AllowAllNull: WideString;
begin
  Result := AttributeNodes['allowAllNull'].Text;
end;

procedure TXMLConditionsType.Set_AllowAllNull(Value: WideString);
begin
  SetAttribute('allowAllNull', Value);
end;

function TXMLConditionsType.Get_Item(Index: Integer): IXMLItemType;
begin
  Result := List[Index] as IXMLItemType;
end;

function TXMLConditionsType.Add: IXMLItemType;
begin
  Result := AddItem(-1) as IXMLItemType;
end;

function TXMLConditionsType.Insert(const Index: Integer): IXMLItemType;
begin
  Result := AddItem(Index) as IXMLItemType;
end;

{ TXMLItemType }

function TXMLItemType.Get_Name: WideString;
begin
  Result := AttributeNodes['name'].Text;
end;

procedure TXMLItemType.Set_Name(Value: WideString);
begin
  SetAttribute('name', Value);
end;

function TXMLItemType.Get_Datatype: WideString;
begin
  Result := AttributeNodes['datatype'].Text;
end;

procedure TXMLItemType.Set_Datatype(Value: WideString);
begin
  SetAttribute('datatype', Value);
end;

function TXMLItemType.Get_Notnull: WideString;
begin
  Result := AttributeNodes['notnull'].Text;
end;

procedure TXMLItemType.Set_Notnull(Value: WideString);
begin
  SetAttribute('notnull', Value);
end;

function TXMLItemType.Get_Script: WideString;
begin
  Result := AttributeNodes['script'].Text;
end;

procedure TXMLItemType.Set_Script(Value: WideString);
begin
  SetAttribute('script', Value);
end;

function TXMLItemType.Get_Is_history: WideString;
begin
  Result := AttributeNodes['is_history'].Text;
end;

procedure TXMLItemType.Set_Is_history(Value: WideString);
begin
  SetAttribute('is_history', Value);
end;

function TXMLItemType.Get_DefValue: WideString;
begin
  Result := AttributeNodes['defValue'].Text;
end;

procedure TXMLItemType.Set_DefValue(Value: WideString);
begin
  SetAttribute('defValue', Value);
end;

function TXMLItemType.Get_Template_id: WideString;
begin
  Result := AttributeNodes['template_id'].Text;
end;

procedure TXMLItemType.Set_Template_id(Value: WideString);
begin
  SetAttribute('template_id', Value);
end;

function TXMLItemType.Get_Captions: WideString;
begin
  Result := AttributeNodes['captions'].Text;
end;

procedure TXMLItemType.Set_Captions(Value: WideString);
begin
  SetAttribute('captions', Value);
end;

function TXMLItemType.Get_Values: WideString;
begin
  Result := AttributeNodes['values'].Text;
end;

procedure TXMLItemType.Set_Values(Value: WideString);
begin
  SetAttribute('values', Value);
end;

function TXMLItemType.Get_GetCaptionsSql: WideString;
begin
  Result := AttributeNodes['getCaptionsSql'].Text;
end;

procedure TXMLItemType.Set_GetCaptionsSql(Value: WideString);
begin
  SetAttribute('getCaptionsSql', Value);
end;

function TXMLItemType.Get_GetValuesSql: WideString;
begin
  Result := AttributeNodes['getValuesSql'].Text;
end;

procedure TXMLItemType.Set_GetValuesSql(Value: WideString);
begin
  SetAttribute('getValuesSql', Value);
end;

function TXMLItemType.Get_Neme: WideString;
begin
  Result := AttributeNodes['neme'].Text;
end;

procedure TXMLItemType.Set_Neme(Value: WideString);
begin
  SetAttribute('neme', Value);
end;

{ TXMLRow_colorsType }

procedure TXMLRow_colorsType.AfterConstruction;
begin
  RegisterChildNode('color', TXMLColorType);
  ItemTag := 'color';
  ItemInterface := IXMLColorType;
  inherited;
end;

function TXMLRow_colorsType.Get_Color(Index: Integer): IXMLColorType;
begin
  Result := List[Index] as IXMLColorType;
end;

function TXMLRow_colorsType.Add: IXMLColorType;
begin
  Result := AddItem(-1) as IXMLColorType;
end;

function TXMLRow_colorsType.Insert(const Index: Integer): IXMLColorType;
begin
  Result := AddItem(Index) as IXMLColorType;
end;

{ TXMLColorType }

function TXMLColorType.Get_Rgb: WideString;
begin
  Result := AttributeNodes['rgb'].Text;
end;

procedure TXMLColorType.Set_Rgb(Value: WideString);
begin
  SetAttribute('rgb', Value);
end;

function TXMLColorType.Get_Field_value: WideString;
begin
  Result := AttributeNodes['field_value'].Text;
end;

procedure TXMLColorType.Set_Field_value(Value: WideString);
begin
  SetAttribute('field_value', Value);
end;

end.